Skip to content

Comments

chore(sc-65330): Improve error reporting for apps by reporting to Sentry#59

Merged
AFOJ merged 4 commits intomainfrom
chore/sc-65330/improve-error-reporting-for-apps-sentry
May 29, 2025
Merged

chore(sc-65330): Improve error reporting for apps by reporting to Sentry#59
AFOJ merged 4 commits intomainfrom
chore/sc-65330/improve-error-reporting-for-apps-sentry

Conversation

@HappyPaul55
Copy link
Contributor

This PR improves error reporting for apps by integrating Sentry. It includes the necessary configurations and updates to the main.tsx file to handle errors effectively.

Copilot AI review requested due to automatic review settings May 28, 2025 11:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances error reporting by integrating Sentry into the application workflow, configuring both the Vite build and runtime error monitoring.

  • Updated Vite configuration to conditionally include the Sentry plugin and enable sourcemaps.
  • Modified the main entry file to initialize Sentry and added a new instrument module for runtime Sentry setup.
  • Updated package.json to include Sentry dependencies and adjusted the subworkflow build script to manage Sentry-related environment variables.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vite.config.ts Adds Sentry plugin conditionally and enables sourcemaps for error mapping.
src/main.tsx Imports Sentry to support error monitoring.
src/instrument.ts Initializes Sentry based on URL parameters.
package.json Adds dependencies for Sentry integration.
.github/workflows/subworkflow-build.yml Adjusts build workflow to set Sentry environment variables and conditionally disable Sentry releases.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

vite.config.ts:56

  • Since sourcemaps are enabled to aid Sentry error reporting, please ensure this configuration is documented to confirm that exposing sourcemaps in production is an intentional decision.
    sourcemap: true

@github-actions
Copy link

@AFOJ AFOJ merged commit a37e4c9 into main May 29, 2025
5 checks passed
@AFOJ AFOJ deleted the chore/sc-65330/improve-error-reporting-for-apps-sentry branch May 29, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants